package com.cqq.auth.dao;

import java.util.List;

import com.cqq.auth.dao.domain.Role;
import com.cqq.common.core.interfaces.CommonDao;

/**
 * <h3>角色Dao接口</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
public interface RoleDao extends CommonDao<Role> {

	public List<Role> queryAllBySystem(String[] systemCode);
	
	public List<Role> queryByUserId(Integer id,String[] systemCode);
	
	public List<Role> queryByUsername(String username,String[] systemCode);
	
	public Role queryByCode(String code,String[] systemCode);
	
	public Role queryByName(String name,String[] systemCode);
	
	public Integer updatePermIds(Integer id, Integer[] permIds);
	
	public List<Role> queryByUserGroupId(Integer userGroupId,String[] systemCode);
}
